export const storage = {
  set(key, value) {
    window.sessionStorage.setItem(key, value);
  },
  get(key) {
    const value = window.sessionStorage.getItem(key);
    if (value && value != "undefined" && value != "null") {
      return value;
    }
    return null;
  },
  remove(key) {
    window.sessionStorage.removeItem(key);
  },
  clear() {
    window.sessionStorage.clear();
  },
};
